<template>
  <div class="content-box intro-y">
    <hBase :args="args">
      <template #parts>
        <el-table-column prop="tchNum" label="编号" width="180" />
        <el-table-column prop="tchName" label="姓名" width="180" />
        <el-table-column prop="titleName" label="职位" />
      </template>
      <template #edit="{ init, close }">
        <edit :init="init" @close="close"></edit>
      </template>
    </hBase>
  </div>
</template>
  
<script setup>
import { onMounted, computed } from "vue";
import hBase from "../base/hBase.vue";
import * as $api from "@/api/api.js";
import edit from "./Edit.vue"

onMounted(() => {
  console.log($api.BATeacherQueryCondition); // 使用 globalProperties 上的 $api
});
const args = computed(() => {
  return {
    search: $api.BATeacherQueryCondition,
    keyword: (e) => {
      e.userId = 1;
      return e;
    },
  };
});
</script>
  
  <style>
</style>